<!-- Sidebar -->
<ul class="navbar-nav sidebar sidebar-dark accordion" id="accordionSidebar">

	<!-- Sidebar - Brand -->
	<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{$dashboardPageUrl}">
		<div class="sidebar-brand-icon rotate-n-15">
			<i class="iconfontzz icon-kuaisushengjix"></i>
		</div>
		<div class="sidebar-brand-text mx-3">danceUI</div>
	</a>
	
	<!-- Divider -->
	<hr class="sidebar-divider my-0">

	<!-- Nav Item - Dashboard -->
	<li class="nav-item">
		<a class="nav-link" href="{$dashboardPageUrl}">
			<i class="iconfontzz icon-menu_kongzhitai"></i>
			<span>控制面板</span>
		</a>
	</li>
	
	{volist name="sideBarMenuCate" id="voCate"}
		<!-- Divider -->
		<hr class="sidebar-divider">

		<!-- Heading -->
		<div class="sidebar-heading">
			{$voCate['name']}
		</div>
<?php
$sidebarMenuArr = $sidebarMenuGroup[$voCate['id']];
?>
		{volist name="sidebarMenuArr" id="voMenu"}
		<?php
			//print_r($voMenu);exit;
			if (!$voMenu['checked']) {
				continue;
			}
			if (!$voMenu['display']) {
				continue;
			}
			if ($voMenu['url']) {
				$url = $vo2['url'];
				$right = '';
				$liClass = '';
			} else {
				$url = 'javascript:;';
				$right = '<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>';
				$liClass = 'treeview menu-open';
			}
			if ($voMenu['current'] == 1 || $parentRule['pid'] == $voMenu['id']) {
				$navMenu = '';
				$submenuShow = 'show';
			} else {
				$navMenu = 'collapsed';
				$submenuShow = '';
			}
		?>
		<!-- Nav Item - Pages Collapse Menu -->
		<li class="nav-item">
			<a class="nav-link {$navMenu}" href="#" data-toggle="collapse" data-target="#menu_{$voMenu['id']}" aria-expanded="true" aria-controls="menu_{$voMenu['id']}">
				<i class="iconfontzz icon-shezhi"></i>
				<span>{$voMenu['name']}</span>
			</a>
			<div id="menu_{$voMenu['id']}" class="collapse {$submenuShow}" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
				<div class="bg-white py-2 collapse-inner rounded">
					<h6 class="collapse-header" style="display: none;">Custom Components:</h6>
					{volist name="voMenu['subs']" id="voSub"}
					<?php
						if (!$voSub['checked']) {
							continue;
						}
						if (!$voSub['display']) {
							continue;
						}
						if ($voSub['current'] == 1 || $parentRule['id'] == $voSub['id']) {
							$subActive = 'active';
						} else {
							$subActive = '';
						}
					?>
					<a class="collapse-item {$subActive}" href="{$voSub['url']}">{$voSub['name']}</a>
					{/volist}
				</div>
			</div>
		</li>
		{/volist}
	{/volist}

	<!-- Divider -->
	<hr class="sidebar-divider d-none d-md-block">

</ul>
<!-- End of Sidebar -->